/****************************************************************************
** Form implementation generated from reading ui file 'cbparamdialogbase.ui'
**
** Created: Sun Mar 23 17:30:04 2008
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.7   edited Aug 31 2005 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "cbparamdialogbase.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qtabwidget.h>
#include <qwidget.h>
#include <qlineedit.h>
#include <qlabel.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/*
 *  Constructs a cbParamDialogBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
cbParamDialogBase::cbParamDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "cbParamDialogBase" );
    setSizeGripEnabled( TRUE );
    cbParamDialogBaseLayout = new QVBoxLayout( this, 11, 6, "cbParamDialogBaseLayout"); 

    tabWidget = new QTabWidget( this, "tabWidget" );

    Widget2 = new QWidget( tabWidget, "Widget2" );
    Widget2Layout = new QHBoxLayout( Widget2, 0, 6, "Widget2Layout"); 

    layout26 = new QGridLayout( 0, 1, 1, 0, 6, "layout26"); 

    lnEditSimStep = new QLineEdit( Widget2, "lnEditSimStep" );
    lnEditSimStep->setAlignment( int( QLineEdit::AlignRight ) );

    layout26->addWidget( lnEditSimStep, 2, 4 );

    textLabel10 = new QLabel( Widget2, "textLabel10" );

    layout26->addMultiCellWidget( textLabel10, 2, 2, 0, 1 );
    spacer10 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout26->addItem( spacer10, 1, 3 );

    textLabel8 = new QLabel( Widget2, "textLabel8" );

    layout26->addWidget( textLabel8, 0, 0 );

    lnEditRunningTimeout = new QLineEdit( Widget2, "lnEditRunningTimeout" );
    lnEditRunningTimeout->setAlignment( int( QLineEdit::AlignRight ) );

    layout26->addWidget( lnEditRunningTimeout, 1, 4 );

    textLabel9 = new QLabel( Widget2, "textLabel9" );

    layout26->addMultiCellWidget( textLabel9, 1, 1, 0, 2 );
    spacer9 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout26->addMultiCell( spacer9, 0, 0, 1, 3 );

    lnEditSimTime = new QLineEdit( Widget2, "lnEditSimTime" );
    lnEditSimTime->setAlignment( int( QLineEdit::AlignRight ) );

    layout26->addWidget( lnEditSimTime, 0, 4 );
    spacer11 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout26->addMultiCell( spacer11, 2, 2, 2, 3 );
    Widget2Layout->addLayout( layout26 );
    tabWidget->insertTab( Widget2, QString::fromLatin1("") );

    Widget3 = new QWidget( tabWidget, "Widget3" );
    Widget3Layout = new QHBoxLayout( Widget3, 0, 6, "Widget3Layout"); 

    layout29 = new QGridLayout( 0, 1, 1, 0, 6, "layout29"); 
    spacer8 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout29->addItem( spacer8, 3, 1 );

    lnEditCompassNoise = new QLineEdit( Widget3, "lnEditCompassNoise" );
    lnEditCompassNoise->setAlignment( int( QLineEdit::AlignRight ) );

    layout29->addWidget( lnEditCompassNoise, 1, 2 );
    spacer5 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout29->addItem( spacer5, 0, 1 );
    spacer7 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout29->addItem( spacer7, 2, 1 );

    lnEditBeaconNoise = new QLineEdit( Widget3, "lnEditBeaconNoise" );
    lnEditBeaconNoise->setAlignment( int( QLineEdit::AlignRight ) );

    layout29->addWidget( lnEditBeaconNoise, 2, 2 );

    textLabel4 = new QLabel( Widget3, "textLabel4" );

    layout29->addWidget( textLabel4, 0, 0 );
    spacer6 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout29->addItem( spacer6, 1, 1 );

    lnEditMotorsNoise = new QLineEdit( Widget3, "lnEditMotorsNoise" );
    lnEditMotorsNoise->setAlignment( int( QLineEdit::AlignRight ) );

    layout29->addWidget( lnEditMotorsNoise, 3, 2 );

    textLabel7 = new QLabel( Widget3, "textLabel7" );

    layout29->addWidget( textLabel7, 3, 0 );

    textLabel6 = new QLabel( Widget3, "textLabel6" );

    layout29->addWidget( textLabel6, 2, 0 );

    textLabel5 = new QLabel( Widget3, "textLabel5" );

    layout29->addWidget( textLabel5, 1, 0 );

    lnEditObstacleNoise = new QLineEdit( Widget3, "lnEditObstacleNoise" );
    lnEditObstacleNoise->setAlignment( int( QLineEdit::AlignRight ) );

    layout29->addWidget( lnEditObstacleNoise, 0, 2 );
    Widget3Layout->addLayout( layout29 );
    tabWidget->insertTab( Widget3, QString::fromLatin1("") );

    tab = new QWidget( tabWidget, "tab" );
    tabLayout = new QVBoxLayout( tab, 11, 6, "tabLayout"); 

    Layout25 = new QVBoxLayout( 0, 0, 6, "Layout25"); 

    Layout15 = new QVBoxLayout( 0, 0, 6, "Layout15"); 

    Layout5 = new QHBoxLayout( 0, 0, 6, "Layout5"); 

    TextLabel1 = new QLabel( tab, "TextLabel1" );
    Layout5->addWidget( TextLabel1 );
    Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout5->addItem( Spacer1 );

    lnEditReqPCycle = new QLineEdit( tab, "lnEditReqPCycle" );
    lnEditReqPCycle->setAlignment( int( QLineEdit::AlignRight ) );
    Layout5->addWidget( lnEditReqPCycle );
    Layout15->addLayout( Layout5 );

    TextLabel2 = new QLabel( tab, "TextLabel2" );
    Layout15->addWidget( TextLabel2 );

    Layout14 = new QVBoxLayout( 0, 0, 6, "Layout14"); 

    Layout13 = new QHBoxLayout( 0, 0, 6, "Layout13"); 

    cBoxReqIR = new QCheckBox( tab, "cBoxReqIR" );
    Layout13->addWidget( cBoxReqIR );
    Spacer1_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout13->addItem( Spacer1_3 );
    Layout14->addLayout( Layout13 );

    Layout10 = new QHBoxLayout( 0, 0, 6, "Layout10"); 

    cBoxReqBeacon = new QCheckBox( tab, "cBoxReqBeacon" );
    Layout10->addWidget( cBoxReqBeacon );
    Spacer1_3_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout10->addItem( Spacer1_3_2 );
    Layout14->addLayout( Layout10 );

    Layout11 = new QHBoxLayout( 0, 0, 6, "Layout11"); 

    cBoxReqGround = new QCheckBox( tab, "cBoxReqGround" );
    Layout11->addWidget( cBoxReqGround );
    Spacer1_3_2_2_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout11->addItem( Spacer1_3_2_2_2 );
    Layout14->addLayout( Layout11 );

    Layout12 = new QHBoxLayout( 0, 0, 6, "Layout12"); 

    cBoxReqCompass = new QCheckBox( tab, "cBoxReqCompass" );
    Layout12->addWidget( cBoxReqCompass );
    Spacer1_3_2_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout12->addItem( Spacer1_3_2_2 );
    Layout14->addLayout( Layout12 );

    Layout13_2 = new QHBoxLayout( 0, 0, 6, "Layout13_2"); 

    cBoxReqCollision = new QCheckBox( tab, "cBoxReqCollision" );
    Layout13_2->addWidget( cBoxReqCollision );
    Spacer1_3_2_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout13_2->addItem( Spacer1_3_2_3 );
    Layout14->addLayout( Layout13_2 );
    Layout15->addLayout( Layout14 );
    Layout25->addLayout( Layout15 );
    Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    Layout25->addItem( Spacer4 );
    tabLayout->addLayout( Layout25 );
    tabWidget->insertTab( tab, QString::fromLatin1("") );

    tab_2 = new QWidget( tabWidget, "tab_2" );
    tabLayout_2 = new QVBoxLayout( tab_2, 11, 6, "tabLayout_2"); 

    Layout24 = new QVBoxLayout( 0, 0, 6, "Layout24"); 

    Layout16_2_2 = new QHBoxLayout( 0, 0, 6, "Layout16_2_2"); 

    TextLabel3_2_2 = new QLabel( tab_2, "TextLabel3_2_2" );
    Layout16_2_2->addWidget( TextLabel3_2_2 );
    Spacer3_2_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout16_2_2->addItem( Spacer3_2_2 );

    lnEditLatIR = new QLineEdit( tab_2, "lnEditLatIR" );
    lnEditLatIR->setAlignment( int( QLineEdit::AlignRight ) );
    lnEditLatIR->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, lnEditLatIR->sizePolicy().hasHeightForWidth() ) );
    Layout16_2_2->addWidget( lnEditLatIR );
    Layout24->addLayout( Layout16_2_2 );

    Layout16 = new QHBoxLayout( 0, 0, 6, "Layout16"); 

    TextLabel3 = new QLabel( tab_2, "TextLabel3" );
    Layout16->addWidget( TextLabel3 );
    Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout16->addItem( Spacer3 );

    lnEditLatBeacon = new QLineEdit( tab_2, "lnEditLatBeacon" );
    lnEditLatBeacon->setAlignment( int( QLineEdit::AlignRight ) );
    lnEditLatBeacon->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, lnEditLatBeacon->sizePolicy().hasHeightForWidth() ) );
    Layout16->addWidget( lnEditLatBeacon );
    Layout24->addLayout( Layout16 );

    Layout16_2_2_2 = new QHBoxLayout( 0, 0, 6, "Layout16_2_2_2"); 

    TextLabel3_2_2_2 = new QLabel( tab_2, "TextLabel3_2_2_2" );
    Layout16_2_2_2->addWidget( TextLabel3_2_2_2 );
    Spacer3_2_2_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout16_2_2_2->addItem( Spacer3_2_2_2 );

    lnEditLatCompass = new QLineEdit( tab_2, "lnEditLatCompass" );
    lnEditLatCompass->setAlignment( int( QLineEdit::AlignRight ) );
    lnEditLatCompass->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, lnEditLatCompass->sizePolicy().hasHeightForWidth() ) );
    Layout16_2_2_2->addWidget( lnEditLatCompass );
    Layout24->addLayout( Layout16_2_2_2 );

    Layout16_3 = new QHBoxLayout( 0, 0, 6, "Layout16_3"); 

    TextLabel3_3 = new QLabel( tab_2, "TextLabel3_3" );
    Layout16_3->addWidget( TextLabel3_3 );
    Spacer3_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout16_3->addItem( Spacer3_3 );

    lnEditLatGround = new QLineEdit( tab_2, "lnEditLatGround" );
    lnEditLatGround->setAlignment( int( QLineEdit::AlignRight ) );
    lnEditLatGround->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, lnEditLatGround->sizePolicy().hasHeightForWidth() ) );
    Layout16_3->addWidget( lnEditLatGround );
    Layout24->addLayout( Layout16_3 );

    Layout16_4 = new QHBoxLayout( 0, 0, 6, "Layout16_4"); 

    TextLabel3_4 = new QLabel( tab_2, "TextLabel3_4" );
    Layout16_4->addWidget( TextLabel3_4 );
    Spacer3_4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout16_4->addItem( Spacer3_4 );

    lnEditLatCollision = new QLineEdit( tab_2, "lnEditLatCollision" );
    lnEditLatCollision->setAlignment( int( QLineEdit::AlignRight ) );
    lnEditLatCollision->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, lnEditLatCollision->sizePolicy().hasHeightForWidth() ) );
    Layout16_4->addWidget( lnEditLatCollision );
    Layout24->addLayout( Layout16_4 );
    tabLayout_2->addLayout( Layout24 );
    tabWidget->insertTab( tab_2, QString::fromLatin1("") );
    cbParamDialogBaseLayout->addWidget( tabWidget );

    Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); 
    Horizontal_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout1->addItem( Horizontal_Spacing2 );

    buttonOk = new QPushButton( this, "buttonOk" );
    buttonOk->setAccel( QKeySequence( 276824143 ) );
    buttonOk->setAutoDefault( TRUE );
    buttonOk->setDefault( TRUE );
    Layout1->addWidget( buttonOk );

    buttonCancel = new QPushButton( this, "buttonCancel" );
    buttonCancel->setAccel( QKeySequence( 276824131 ) );
    buttonCancel->setAutoDefault( TRUE );
    Layout1->addWidget( buttonCancel );
    cbParamDialogBaseLayout->addLayout( Layout1 );
    languageChange();
    resize( QSize(694, 400).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
    connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
}

/*
 *  Destroys the object and frees any allocated resources
 */
cbParamDialogBase::~cbParamDialogBase()
{
    // no need to delete child widgets, Qt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void cbParamDialogBase::languageChange()
{
    setCaption( tr( "Parameters Configuration" ) );
    textLabel10->setText( tr( "Simulation Step (ms)" ) );
    textLabel8->setText( tr( "Simulation Time" ) );
    textLabel9->setText( tr( "Deadline for 1st Objective" ) );
    tabWidget->changeTab( Widget2, tr( "Time" ) );
    textLabel4->setText( tr( "Obstacle Sensors Noise" ) );
    textLabel7->setText( tr( "Motors Noise" ) );
    textLabel6->setText( tr( "Beacon Sensor Noise" ) );
    textLabel5->setText( tr( "Compass Noise" ) );
    tabWidget->changeTab( Widget3, tr( "Noise" ) );
    TextLabel1->setText( tr( "Request per cycle" ) );
    TextLabel2->setText( tr( "Requestable Sensors" ) );
    cBoxReqIR->setText( tr( "Obstacle Sensors" ) );
    cBoxReqBeacon->setText( tr( "Beacon Sensors" ) );
    cBoxReqGround->setText( tr( "Ground" ) );
    cBoxReqCompass->setText( tr( "Compass" ) );
    cBoxReqCollision->setText( tr( "Collision" ) );
    tabWidget->changeTab( tab, tr( "Requests" ) );
    TextLabel3_2_2->setText( tr( "Obstacle Sensors" ) );
    TextLabel3->setText( tr( "Beacon Sensors" ) );
    TextLabel3_2_2_2->setText( tr( "Compass" ) );
    TextLabel3_3->setText( tr( "Ground" ) );
    TextLabel3_4->setText( tr( "Collision" ) );
    tabWidget->changeTab( tab_2, tr( "Latency" ) );
    buttonOk->setText( tr( "&OK" ) );
    buttonCancel->setText( tr( "&Cancel" ) );
}

